/**
 * @author: LiYaHui
 * @date: 2021-11-02
 * @description: 预警相关接口
 */
import axios from '@/libs/api.request'

/**
 * 获取预警统计
 * @param params
 */
export const getStatistics = params => axios.request({
  url: '/api/Statistics',
  method: 'get',
  params
})

/**
 * 场景预警数量统计
 * @param params
 * @returns {*}
 */
export const getSceneStatic = params => axios.request({
  url: '/api/Statistics/sceneStatic',
  method: 'get',
  params
})

/**
 * 预警数排名
 * @param params
 * @returns {*}
 */
export const getAlarmTStatic = params => axios.request({
  url: '/api/Statistics/alarmTStatic',
  method: 'get',
  params
})

/**
 * 场景分布和已处理数
 * @param params
 * @returns {*}
 */
export const getLocationStatic = params => axios.request({
  url: '/api/Statistics/locationStatic',
  method: 'get',
  params
})

/**
 * 预警数统计
 * @param params
 * @returns {*}
 */
export const getTimeStatic = params => axios.request({
  url: '/api/Statistics/timeStatic',
  method: 'get',
  params
})
